package com.samuel.blog.constant;

/**
 * 公共常量
 * @author kaiji
 * @date 2017-12-28
 *
 */
public class CommonConstant {
	
	/** 登楼的session的key **/
	public static final String USER_LOGIN_SESSION_KEY = "authorLoginSessionKey";
	
	/** 默认controller地址列表 **/
	public static final String URI_LIST = "admin";
	
	/** 正在使用 **/
	public static final int START_USE = 0;
	
	/** 禁用 **/
	public static final int STOP_USE = 1;

	/** admin 主键 **/
	public static final String ADMIN_ROLE_ID = "b1be40f2fce411e7a9d7b6f4a86a1c4c";
	
	/** 本地默认上传图片的基础地址 **/
	public static final String UPLOAD_URL = "/Users/kaiji/Documents/java/static/blog/images/";
	/** 静态资源服务器地址 **/
	public static final String IMAGES_URL = "http://www.blog-images.com";
	
	/** 本地存储 **/
	public static final String UPLOAD_URL_LOCAL = "/Users/kaiji/Documents/java/kaiji-workspace/blog/blog-controller/"
			+ "src/main/webapp/WEB-INF/upload/";

	/** lucene 本地存储地址 **/
	public static final String LUCENE_SAVE = "/Users/kaiji/Documents/java/static/blog/lucene/";
	
	/* 错误相关提示 */
	public static final class NoticeCode {
		/** ajax 错误提示码 **/
		public static final int ERROR_ZERO = 0; // 一般失败
		public static final int SUCCESS_ONE = 1; // 成功
		public static final int ERROR_TWO = 2; // 其他失败
	}

}
